@echo off
cls

set path1=Debug32
set path2=Debug64

set path3=Release32
set path4=Release64
set path5=RelWithDebInfo32
set path6=RelWithDebInfo64

if exist %path1%   (rmdir /s /q %SOURCE_DIRECTORY%%path1% ) 
if exist %path2%   (rmdir /s /q %SOURCE_DIRECTORY%%path2% ) 
if exist %path3%   (rmdir /s /q %SOURCE_DIRECTORY%%path3% ) 
if exist %path4%   (rmdir /s /q %SOURCE_DIRECTORY%%path4% ) 
if exist %path5%   (rmdir /s /q %SOURCE_DIRECTORY%%path5% ) 
if exist %path6%   (rmdir /s /q %SOURCE_DIRECTORY%%path6% ) 

echo cleaning completed